package com.IMI.DatabaseActivity;

import android.content.Context;
import android.graphics.Color;
import android.util.Log;
import android.view.LayoutInflater;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RadioButton;


import android.widget.TextView;

public class DataView extends LinearLayout {
	private TextView field1;
	private TextView field2;
	private TextView field3;
	
	
	public DataView(Context context, String text1, String text2, String text3) {
		super(context);
		LayoutInflater inflater = (LayoutInflater)context.getSystemService(
		Context.LAYOUT_INFLATER_SERVICE);

		Log.d("allvalues",text1+" "+text2+" "+text3);
		
		inflater.inflate(R.layout.dataview, this, true);
    	this.field1 = (TextView) findViewById(R.id.txt1);
    	this.field2=(TextView) findViewById(R.id.txt2);
    	this.field3=(TextView) findViewById(R.id.txt3);
    	    	
    	    	
	}
	public void setField1(String text1){
		field1.setText(text1);
	}
	public void setField2(String text2){
		field2.setText(text2);
	}
	public void setField3(String text3){
		field2.setText(text3);
	}
	
}